<%@page import="servlet.CommitteeTableResult"%>
<%@page import="Logic.Authorizer"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%
	if (session.getAttribute("name") == null) {
		response.sendRedirect("login.jsp");
	}
%>

<!-- Declare the first header -->
<jsp:include page="t_header.jsp" />

<jsp:include page="header.html" />

<!-- Declare sidebar -->
<jsp:include page="t_siderbarcommittee.jsp" />

<!-- Main Content -->
<section id="main" class="column">
	<%
		if (request.getParameter("error") != null) {
			if (request.getParameter("error").equals("-1"))
				out.print("<h4 class='alert_success'>Committee deleted successfully.</h4>");
			else if (request.getParameter("error").equals("-2"))
				out.print("<h4 class='alert_success'>Committee updated successfully.</h4>");
			else if (request.getParameter("error").equals("1"))
				out.print("<h4 class='alert_error'>No result found.</h4>");
		}
	%>

	<%
		if (request.getParameter("error") == null) {
	%>
	<article class="module width_full">
		<header>
			<h3>Search committee result</h3>
		</header>


		<table class="tablesorter" cellspacing="0">
			<thead>
				<tr>
					<th style="width: 15%">Title</th>
					<th style="width: 25%">Purpose</th>
					<th>Role</th>
					<th>Staff</th>
					<th style="width: 5%">Edit/Delete</th>
					<th style="width: 5%">Print</th>
				</tr>
			</thead>
			<tbody>
				<%
					CommitteeTableResult rt = new CommitteeTableResult(out, request
								.getAttribute("id").toString());
						rt.doGet(request, response);
				%>
			</tbody>
		</table>

		<%
			}
		%>


	</article>
	<!-- end of content manager article -->
	<div class="spacer"></div>
</section>

<!-- Declare closing tags -->
<jsp:include page="t_footer.jsp" />